package top.wshape1.rpc.spring.annotation;

import org.springframework.stereotype.Component;
import top.wshape1.rpc.common.constant.RpcFilterType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Wshape1
 * @version 1.0
 * @description Rpc请求过滤器，注解在实现{@link top.wshape1.rpc.filter.Filter}的类上生效
 * @since 2024-02-21
 */

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface RpcFilter {

    RpcFilterType[] value();

}
